package ch4;
//飞机类
public class Plane {
    int eatss;//座位数
    float altitude ;//飞行高度
    public void show(int eatss,float altitude){
        this.eatss=eatss;
        this.altitude=altitude;
    }
    public String nature(){
       return "飞行高度"+altitude+"米,有"+eatss+"个座位";
    }
    public String  takeOff(){
        return "起飞";
    }
    public String  land(){
        return "降落";
    }

}
